package com.example.springlogintest;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class LoginController {

    @RequestMapping("/login")
    public boolean loginChk(String username, String password, HttpServletRequest request){
        if(username == "krik" && password == "1234"){

           return true;
        }else {
            return false;
        }

    }
}
